{extend name="public/base" /}
{block name="body"}
<!--主题-->
<div class="page-header">
    <h1>
        您当前操作
        <small>
            <i class="ace-icon fa fa-angle-double-right"></i>
            编辑系统管理员
        </small>
    </h1>
</div>
<div class="row">
    <div class="col-xs-12">
        <form class="form-horizontal" name="admin_list_add" id="myform" method="post"
              action="{:url('Manageuser/AdminEdit')}">
				<input type="hidden" name="id" value="{$row.id}"/>
            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 所属用户组： </label>

                <div class="col-sm-10">
                    <select name="group_id" class="col-sm-4">
                        <option value="">请选择所属用户组</option>
                        {volist name="group" id="v"}
                            <option value="{$v.id}" {if condition="$row['group_id'] eq $v['id']"}selected{/if}>{$v.title}</option>
                        {/volist}
                    </select>
                </div>
            </div>
            <div class="space-4"></div>

            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 登录用户名： </label>

                <div class="col-sm-10">
                    <input type="text" name="admin_username" id="admin_username" placeholder="输入登录用户名"
                           class="col-xs-10 col-sm-4" value="{$row.admin_username}"/>
                    <span class="lbl">&nbsp;&nbsp;<span class="red">*</span>用户名必须是以字母或数字组合</span>
                </div>
            </div>
            <div class="space-4"></div>

            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 登录密码： </label>

                <div class="col-sm-10">
                    <input type="password" name="admin_pwd" id="admin_pwd" placeholder="输入登录密码" class="col-xs-10 col-sm-4"/>
                    <span class="lbl">&nbsp;&nbsp;<span class="red">*</span>密码必须大于6位，小于15位</span>
                </div>
            </div>
            <div class="space-4"></div>

            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 用户邮箱： </label>

                <div class="col-sm-10">
                    <input type="text" name="admin_email" id="admin_email" placeholder="输入用户邮箱"
                           class="col-xs-10 col-sm-4" value="{$row.admin_email}"/>
                    <span class="lbl">&nbsp;&nbsp;<span class="red">*</span>用于密码找回，请认真填写</span>
                </div>
            </div>
            <div class="space-4"></div>

            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 手机号码： </label>

                <div class="col-sm-10">
                    <input type="text" name="admin_tel" id="admin_tel" placeholder="输入手机号码" class="col-xs-10 col-sm-4" value="{$row.admin_tel}"/>
                    <span class="lbl">&nbsp;&nbsp;<span class="red">*</span>只能填写数字</span>
                </div>
            </div>
            <div class="space-4"></div>

            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 通用网名： </label>

                <div class="col-sm-10">
                    <input type="text" name="admin_realname" id="admin_realname" placeholder="输入通用网名"
                           class="col-xs-10 col-sm-4" value="{$row.admin_realname}"/>
                    <span class="lbl">&nbsp;&nbsp;<span class="red">*</span>用于发布信息所有人，且在前端显示</span>
                </div>
            </div>
            <div class="space-4"></div>

            <div class="form-group">
                <label class="col-sm-2 control-label no-padding-right" for="form-field-1"> 是否可用： </label>

                <div class="col-sm-10" style="padding-top:5px;">
                    <input name="status" id="status" value="1" class="ace ace-switch ace-switch-4 btn-flat"
                           type="checkbox" {if condition="$row['status'] eq 1"}checked{/if}/>
                    <span class="lbl">&nbsp;&nbsp;默认可用</span>
                </div>
            </div>
            <div class="space-4"></div>

            <div class="clearfix form-actions">
                <div class="col-md-offset-3 col-md-9">
                    <button class="btn btn-info" type="submit">
                        <i class="ace-icon fa fa-check bigger-110"></i>
                        保存
                    </button>

                    &nbsp; &nbsp; &nbsp;
                    <button class="btn" type="reset">
                        <i class="ace-icon fa fa-undo bigger-110"></i>
                        重置
                    </button>
					
					&nbsp; &nbsp; &nbsp;
					<a href="{:url('Manageuser/index')}" class="btn btn-success" type="submit">
                        <i class="ace-icon fa fa-reply bigger-110"></i>
						返回
                    </a>
                </div>
            </div>
        </form>
    </div>
</div>
<div class="hr hr-24"></div>
{/block}